import { BaseEntity } from '../../base/entity/base';
import { Column, Entity } from 'typeorm';

/**
 * 设备绑定记录
 */
@Entity('device_bind')
export class DeviceBindEntity extends BaseEntity {
  @Column({ comment: '绑定时间', nullable: true })
  bindTime: Date;

  @Column({ comment: '解绑时间', nullable: true })
  unbindTime: Date;

  @Column({ comment: '绑定状态', dict: ['已绑定', '已解绑'], default: 0 })
  bindStatus: number;

  @Column({ comment: '设备ID' })
  deviceId: number;

  @Column({ comment: '店铺ID' })
  storeId: number;
}